﻿
using System;
using System.Collections;

namespace Xacml.Core.Policy
{
  public class AttributeAssignmentCollection : AttributeAssignmentCollectionReadWrite
  {
    public AttributeAssignmentCollection(AttributeAssignmentCollectionReadWrite items)
    {
      foreach (AttributeAssignmentElementReadWrite elementReadWrite in (CollectionBase) items)
        this.Add((AttributeAssignmentElementReadWrite) new AttributeAssignmentElement(elementReadWrite.AttributeId, elementReadWrite.DataTypeValue, elementReadWrite.Value, elementReadWrite.SchemaVersion));
    }

    public AttributeAssignmentCollection()
    {
    }

    public override void Clear()
    {
      throw new NotSupportedException();
    }

    public override void RemoveAt(int index)
    {
      throw new NotSupportedException();
    }
  }
}
